//合作科目编辑
Ext.define("ES.view.cooperationcatalog.CooperationCatalogEdit",{
    extend:"Ext.window.Window",
    alias:"widget.cooperationCatalogEdit",
    title:"合作科目",
    width:650,
    height:500,
    layout:"fit",
    modal:true,
    items:{
        xtype:"form",
        defaultType:"textfield",
        frame:true,
        layout:"column",
        buttonAlign:"center",
        defaults:{
            labelSeparator:":",
            labelWidth:56,
            labelAlign:"right",
            allowBlank:false,
            blankText:"不允许为空",
            msgTarget:"side"
        },
        items:[{
                fieldLabel:"合作机构",
                xtype:"combo",
                store:"CooperationStore",
                displayField:"cooperationName",
                valueField:"cooperationID",
                queryMode:"local",
                lazyRender:true,
                name:"cooperationID",
                columnWidth:1
        },{
            xtype:"fieldset",
            columnWidth:1,
            title:"选择科目",
            collapsible:false,
            items:{
                 xtype:"treepanel",
                 height: 370,
                 store:"CooperationCatalogTreeStore",
                 autoScroll:true,
                 rootVisible:false,
                 useArrows:true,
                 lines:true,
                 animate:true,
                 frame:true
            }
        }],
        buttons:[{
            text:"保存",
            action:"btnSave",
            formBind:true,
            disabled:true,
            tooltip:"保存数据"
        },{
            text:"取消",
            action:"btnCancel",
            tooltip:"关闭窗口"
        }]
    },
    initComponent:function(){
        this.callParent(arguments);
    }
})